<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class News_Module extends Module {
	public $name = 'news';
	
	public function __construct(){
		$this->active_module = $this->name;
		parent::__construct();
	}
	
	public function do_admin_preload(){
		$this->CI->admin_navigation->child_link('news',1,'New Manager',admin_url('*/news/new_manager'));
		$this->CI->admin_navigation->child_link('news',2,'Category New',admin_url('*/news/category_new'));
	}
	
	function do_front_preload(){
		$this->CI->smarty->addPluginsDir(APPPATH.'modules/news/plugins/');
	}
}
